<?php


namespace App\Http\Controllers\Admin;


use App\Http\Controllers\Controller;
use App\Model\Admins;
use App\Model\Users;

class UserController extends Controller
{
    public function admin(){
        $admin = Admins::paginate(15);
        return JsonResponse(200,true,'获取成功',$admin);
    }

    public function index(){
        $user = Users::paginate(15);
        return JsonResponse(200,true,'获取成功',$user);
    }
}
